import request from '@/utils/request'

// 查询投票点赞记录列表
export function listVote(query) {
  return request({
    url: '/ypp/vote/list',
    method: 'get',
    params: query
  })
}

// 查询投票点赞记录详细
export function getVote(id) {
  return request({
    url: '/ypp/vote/' + id,
    method: 'get'
  })
}

// 新增投票点赞记录
export function addVote(data) {
  return request({
    url: '/ypp/vote',
    method: 'post',
    data: data
  })
}

// 修改投票点赞记录
export function updateVote(data) {
  return request({
    url: '/ypp/vote',
    method: 'put',
    data: data
  })
}

// 删除投票点赞记录
export function delVote(id) {
  return request({
    url: '/ypp/vote/' + id,
    method: 'delete'
  })
}

// 导出投票点赞记录
export function exportVote(query) {
  return request({
    url: '/ypp/vote/export',
    method: 'get',
    params: query
  })
}